package com.nit.lab.dto.system;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class RoleDTO {

    private Long key;
    private String id;
    private String name;
    private String describe;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer roleOrder;
    private List<PermissionDTO> permissions;

    public RoleDTO() {
    }

    public RoleDTO(Long key, String id, String name, String describe, Integer status, Date createTime, List<PermissionDTO> permissions) {
        this.key = key;
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.status = status;
        this.createTime = createTime;
        this.permissions = permissions;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public String getId() { return id; }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() { return createTime; }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRoleOrder() {
        return roleOrder;
    }

    public void setRoleOrder(Integer roleOrder) {
        this.roleOrder = roleOrder;
    }

    public List<PermissionDTO> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<PermissionDTO> permissions) {
        this.permissions = permissions;
    }
}
